gtk-version-paths.props \
gtkprebuild-broadway.props \
gtkprebuild.props \
- gtk-copy-gdk-broadway.props
+ gtk-copy-gdk-broadway.props \
+ gtk-gen-sources.props
-include $(top_srcdir)/git.mk
gettext-runtime, fontconfig*, freetype*, expat*. See the \r
build/win32/vs10/README.txt file in glib for details where to unpack them.\r
\r
+You will also need a Python 2.x/3.x interpretor installed on your system,\r
+which can be obtained from the official installers available from\r
+http://www.python.org. Please note that the Python interpretor (python.exe)\r
+needs to be in your path before attempting the build of GTK+.\r
+\r
It is recommended that one builds the dependencies with VS10 as far as\r
possible, especially those from and using the GTK+ stack (i.e. GLib,\r
Cairo, ATK, Pango, GDK-Pixbuf), so that crashes caused by mixing calls\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <ImportGroup Label="PropertySheets">\r
+ <Import Project="gtk-build-defines.props" />\r
+ </ImportGroup>\r
+ <PropertyGroup Label="UserMacros">\r
+ <GenerateGtkDbusBuiltSources>\r
+cd ..\..\..\gtk\r
+\r
+python $(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix org.Gtk. --c-namespace _Gtk --generate-c-code gtkdbusgenerated ./gtkdbusinterfaces.xml\r
+\r
+cd $(SolutionDir)\r
+ </GenerateGtkDbusBuiltSources>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <BuildMacro Include="GenerateGtkDbusBuiltSources">\r
+ <Value>$(GenerateGtkDbusBuiltSources)</Value>\r
+ </BuildMacro>\r
+ </ItemGroup>\r
+</Project>
\ No newline at end of file
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
<PropertyGroup Label="UserMacros">\r
<VSVer>10</VSVer>\r
- <GlibEtcInstallRoot>..\..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>\r
+ <GlibEtcInstallRoot>$(SolutionDir)\..\..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>\r
<GlibEtcInstallRootFromBuildWin32>..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRootFromBuildWin32>\r
- <CopyDir>$(GlibEtcInstallRoot)</CopyDir>\r
+ <CopyDir>..\..\..\..\vs$(VSVer)\$(Platform)</CopyDir>\r
<ApiVersion>3.0</ApiVersion>\r
<GtkLibtoolCompatibleDllPrefix>lib</GtkLibtoolCompatibleDllPrefix>\r
<GtkLibtoolCompatibleDllSuffix>-$(ApiVersion)-0</GtkLibtoolCompatibleDllSuffix>\r
<ItemGroup>
<ResourceCompile Include="..\..\..\gtk\gtk-win32.rc"><Filter>Resource Files</Filter></ResourceCompile>
</ItemGroup>
+ <ItemGroup>
+ <CustomBuild Include="..\..\..\gtk\gtkdbusinterfaces.xml"><Filter>Resource Files</Filter></CustomBuild>
+ </ItemGroup>
<ItemGroup>
#include "libgtk.vs10.sourcefiles.filters"
<ClCompile Include="..\..\..\modules\input\gtkimcontextime.c"><Filter>Source Files</Filter></ClCompile>
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="gtk-build-defines.props" />
+ <Import Project="gtk-gen-sources.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="gtk-build-defines.props" />
+ <Import Project="gtk-gen-sources.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="gtk-build-defines.props" />
+ <Import Project="gtk-gen-sources.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="gtk-build-defines.props" />
+ <Import Project="gtk-gen-sources.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
+ <ItemGroup>
+ <CustomBuild Include="..\..\..\gtk\gtkdbusinterfaces.xml">
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating GTK+ DBus Sources...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(GenerateGtkDbusBuiltSources)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Generating GTK+ DBus Sources...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(GenerateGtkDbusBuiltSources)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generating GTK+ DBus Sources...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(GenerateGtkDbusBuiltSources)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h%(Outputs)</Outputs>
+ <Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating GTK+ DBus Sources...</Message>
+ <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(GenerateGtkDbusBuiltSources)</Command>
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h%(Outputs)</Outputs>
+ </CustomBuild>
+ </ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\gtk\gtk-win32.rc" />
</ItemGroup>
gtk-version-paths.vsprops \
gtkprebuild.vsprops \
gtkprebuild-broadway.vsprops \
- gtk-copy-gdk-broadway.vsprops
+ gtk-copy-gdk-broadway.vsprops \
+ gtk-gen-sources.vsprops
-include $(top_srcdir)/git.mk
gettext-runtime, fontconfig*, freetype*, expat*. See the \r
build/win32/vs9/README.txt file in glib for details where to unpack them.\r
\r
+You will also need a Python 2.x/3.x interpretor installed on your system,\r
+which can be obtained from the official installers available from\r
+http://www.python.org. Please note that the Python interpretor (python.exe)\r
+needs to be in your path before attempting the build of GTK+.\r
+\r
It is recommended that one builds the dependencies with VS9 as far as\r
possible, especially those from and using the GTK+ stack (i.e. GLib,\r
Cairo, ATK, Pango, GDK-Pixbuf), so that crashes caused by mixing calls\r
--- /dev/null
+<?xml version="1.0" encoding="Windows-1252"?>\r
+<VisualStudioPropertySheet\r
+ ProjectType="Visual C++"\r
+ Version="8.00"\r
+ Name="gtkgensourcesprops"\r
+ InheritedPropertySheets=".\gtk-build-defines.vsprops"\r
+ >\r
+ <UserMacro\r
+ Name="GenerateGtkDbusBuiltSources"\r
+ Value="\r
+cd ..\..\..\gtk
\r
+python $(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix org.Gtk. --c-namespace _Gtk --generate-c-code gtkdbusgenerated ./gtkdbusinterfaces.xml
\r
+cd $(SolutionDir)
\r
+ "\r
+ />\r
+</VisualStudioPropertySheet>
\ No newline at end of file
/>\r
<UserMacro\r
Name="GlibEtcInstallRoot"\r
- Value="..\..\..\..\vs$(VSVer)\$(PlatformName)"\r
+ Value="$(SolutionDir)\..\..\..\..\vs$(VSVer)\$(PlatformName)"\r
/>\r
<UserMacro\r
Name="GlibEtcInstallRootFromBuildWin32"\r
/>\r
<UserMacro\r
Name="CopyDir"\r
- Value="$(GlibEtcInstallRoot)"\r
+ Value="..\..\..\..\vs$(VSVer)\$(PlatformName)"\r
/>\r
<UserMacro\r
Name="ApiVersion"\r
<Configurations>\r
<Configuration\r
Name="Debug|Win32"\r
- InheritedPropertySheets=".\gtk-build-defines.vsprops"\r
+ InheritedPropertySheets=".\gtk-gen-sources.vsprops"\r
ConfigurationType="2"\r
CharacterSet="2"\r
>\r
</Configuration>\r
<Configuration\r
Name="Release|Win32"\r
- InheritedPropertySheets=".\gtk-build-defines.vsprops"\r
+ InheritedPropertySheets=".\gtk-gen-sources.vsprops"\r
ConfigurationType="2"\r
CharacterSet="2"\r
WholeProgramOptimization="1"\r
</Configuration>\r
<Configuration\r
Name="Debug|x64"\r
- InheritedPropertySheets=".\gtk-build-defines.vsprops"\r
+ InheritedPropertySheets=".\gtk-gen-sources.vsprops"\r
ConfigurationType="2"\r
CharacterSet="2"\r
>\r
</Configuration>\r
<Configuration\r
Name="Release|x64"\r
- InheritedPropertySheets=".\gtk-build-defines.vsprops"\r
+ InheritedPropertySheets=".\gtk-gen-sources.vsprops"\r
ConfigurationType="2"\r
CharacterSet="2"\r
WholeProgramOptimization="1"\r
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"\r
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
>\r
+ <File RelativePath="..\..\..\gtk\gtkdbusinterfaces.xml">\r
+ <FileConfiguration Name="Debug|Win32">\r
+ <Tool Name="VCCustomBuildTool"\r
+ Description="Generating GTK+ DBus Sources..."\r
+ CommandLine="$(GenerateGtkDbusBuiltSources)"\r
+ Outputs="..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h"\r
+ />\r
+ </FileConfiguration>\r
+ <FileConfiguration Name="Release|Win32">\r
+ <Tool Name="VCCustomBuildTool"\r
+ Description="Generating GTK+ DBus Sources..."\r
+ CommandLine="$(GenerateGtkDbusBuiltSources)"\r
+ Outputs="..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h"\r
+ />\r
+ </FileConfiguration>\r
+ <FileConfiguration Name="Debug|x64">\r
+ <Tool Name="VCCustomBuildTool"\r
+ Description="Generating GTK+ DBus Sources..."\r
+ CommandLine="$(GenerateGtkDbusBuiltSources)"\r
+ Outputs="..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h"\r
+ />\r
+ </FileConfiguration>\r
+ <FileConfiguration Name="Release|x64">\r
+ <Tool Name="VCCustomBuildTool"\r
+ Description="Generating GTK+ DBus Sources..."\r
+ CommandLine="$(GenerateGtkDbusBuiltSources)"\r
+ Outputs="..\..\..\gtk\gtkdbusgenerated.c;..\..\..\gtk\gtkdbusgenerated.h"\r
+ />\r
+ </FileConfiguration>\r
+ </File>\r
<File RelativePath="..\..\..\gtk\gtk-win32.rc" />\r
</Filter>\r
<Filter\r